bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashing
authorFederico Mena Quintero <federico@novell.com>
Fri, 19 Jun 2009 02:29:54 +0000 (21:29 -0500)
committerFederico Mena Quintero <federico@novell.com>
Fri, 19 Jun 2009 02:57:54 +0000 (21:57 -0500)
commit3d527afadb802c9027365480023f8aeda18e7ad7
tree60c8bdb4cab610774b5f20f791d011afdb6745f5
parent6382eac6d85409a43b9a3b96cd303338de582f65
bgo#586315 - gtk_file_chooser_list_shortcut_folders() was crashing

The virtual method list_shortcut_folders returns a GSList * of GFile *.
In turn, gtk_file_chooser_list_shortcut_folders() converts those to strings.

However, the delegate in gtkfilechooserutils.c was calling
gtk_file_chooser_list_shortcut_folders() every time, so we were trying
to convert invalid data.

Now we have an internal function that deals with GFile *.  That
function is called by the delegate, and the conversion is done only
once by the API entry points.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
gtk/gtkfilechooser.c
gtk/gtkfilechooserprivate.h
gtk/gtkfilechooserutils.c